<?php

class CalendarioController extends Controller {

    public function actionIndex() {
        // renders the view file 'protected/views/site/index.php'
        // using the default layout 'protected/views/layouts/main.php'
        $this->renderPartial('index');
    }

    public function actionIndex2() {
        include_once 'calendario/servicio.class.php';
        $servicio = new Servicio();
        header('Content-type:application/json');
        echo CJSON::encode($response);
        exit();
    }

    public function actionServicios() {
        // renders the view file 'protected/views/site/index.php'
        // using the default layout 'protected/views/layouts/main.php'
        $this->renderPartial('servicios');
    }

    public function actionEdit() {
        // renders the view file 'protected/views/site/index.php'
        // using the default layout 'protected/views/layouts/main.php'
        $this->renderPartial('edit');
    }

}

?>
